package com.algebra.active.mapper;

import com.algebra.active.domain.WorkflowNode;
import com.algebra.active.domain.WorkflowNodeDto;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
  * @author al
  * @date 2020/6/10 15:21
  * @description 
  */
public interface WorkflowNodeMapper {
    int deleteByPrimaryKey(@Param("nodeId") String nodeId, @Param("procDefId") String procDefId);

    int insert(WorkflowNode record);

    int insertSelective(WorkflowNode record);

    WorkflowNode selectByPrimaryKey(@Param("nodeId") String nodeId, @Param("procDefId") String procDefId);

    int updateByPrimaryKeySelective(WorkflowNode record);

    int updateByPrimaryKey(WorkflowNode record);

    WorkflowNodeDto getCurrentNodeInfo(@Param("nodeId")String nodeId, @Param("procDefId")String procDefId, @Param("clientId")String clientId);

    WorkflowNodeDto getNextNodeInfo(Map<String,Object> param);
}